scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Mod Name / Version: Pollpal.php v1.0 <br /> <br />Description: Ok I can now view multiple question polls <br /> <br />Working Under: UBB.Threads 6.4 and 6.4.1 <br /> <br />Mod Status: Beta <br /> <br />Any pre-requisites: IIP because you will not authenicated without it unless you add a function for that. <br /> <br />Author(s): scroungr <br /> <br />Date: 02/21/04 <br /> <br />Credits: David Lozier for original IIP, Joshpet for updating IIP <br /> <br />Files Altered: pollpal.php, /pals/languages/english/languagepal.php <br /> <br />New Files: pollpal.php, /pals/languages/english/languagepal.php <br /> <br /> <br />Database Altered: No <br /> <br />Info/Instructions: Just upload this into the pals directory and overwrite existing pollpal.php and set the variables and also either cut and paste the pollpal part of the language file into your language file in the pals/languages/xxx directory or overwrite the existing one <br /> <br />// set variables <br />// $whocanseepoll = "0" everyone can see <br />// $whocanseepoll = "1" only registered people can see <br />$whocanseepoll = 0; <br /> <br />// $whocanvote = "0" everyone can vote <br />// $whocanvote = "1" only registered people can vote <br />$whocanvote = 1; <br /> <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
only if it works hehe
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
I encounter a litte problem, take a look:<br /><br /> []http://www.dragonclan-forum.de/capture.jpg[/]<br /><br />from were come the number top of the box ? My pal: www.dragonclan-forum.de/index.php
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ahhh I left a echo in there. hang on let me fix. Thats the currtime I was using it to test a function.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
all fixed now. I left an echo $currtime in there when I was testing poll stop time <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
work ! Fine. There is another minor display error in. Below the poll pal box seems to be a [br] to much. I encounter a double blank line below the box.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok I think there are two display issues now.. won't show any boxes under it either.. let me check and fix.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Ok both problems fixed. New Version uploaded. This should be da end.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
only thig I wasn;t too happy with was the way the actual answer lined up on the pal with the bar.. but not much I can do about that...
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok new one uploaded that uses the Title of the Forum instead of the Keyword.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmm contemplating putting a brake routine in here if you post too many questions or options on the poll.. here take a look why..<br /><br />www.couch-tomatoe.cc
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
I've been poking around pals lately, and I'm still using UBB6.2 (waiting for 6.5.1 probably before we change) and was wondering if 6.3, 6.4 have added a KEY for B_Poll to speed up this query?<br /><br /> SELECT B_Poll,B_Replies,B_Number,B_Board,B_Posted, B_Subject<br /> FROM {$config['tbprefix']}Posts<br /> WHERE B_Poll = '$pollname_q'